import { useEffect, useState } from "react";
import { request, useHistory, useLocation, useModel } from 'umi';
import './index.less'
export default () => {
    const [url,seturl] = useState('');
    useEffect(()=>{
        
        const keys = window.location.href.split('/');
        const key = keys[keys.length-1];
        seturl(`http://localhost:2019/#/vue/${key}`)
    },[])
    return <div className="vuepage">
        {
            url&&<iframe src={url} style={{width:'100%',height:'100%'}}></iframe>
        }
    </div>;
};